﻿using System;
using System.Windows;
using Gao.Poker.App.ViewModel;
using Gao.Poker.Domain;

namespace Gao.Poker.App.Game
{
    /// <summary>
    /// Interaction logic for SelectTemplateWin.xaml
    /// </summary>
    public partial class SelectTemplateWin : Window
    {
        private readonly SelectTemplateViewModel _viewModel;

        public SelectTemplateWin(Action<Competition> action)
        {
            InitializeComponent();
            _viewModel = new SelectTemplateViewModel(action);
            DataContext = _viewModel;
        }
    }
}
